package cn.dinxian.activiti.demo2.test;

import cn.dinxian.activiti.demo2.entity.SysDept;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dingxian
 * @Title:
 * @param:
 * @return:
 * @Date 2023/2/27 19:03
 * @Description:
 */
@RestController
@RequestMapping("openfeign")
public class my_test {

  @PostMapping("t1")
  public SysDept t1(@RequestBody SysDept sysDept) {
    sysDept.setDeptId(Long.valueOf(1231));
    return sysDept;
  }

  @GetMapping("/t2/{id}")
  public String t2(@PathVariable("id") String id){
    return id+"providerDO";
  }
}
